From a7839a5411244295a09c05d8e0f5350bf6b98f93 Mon Sep 17 00:00:00 2001 From: bluss Date: Sun, 13 Aug 2017 14:27:27 +0200 Subject: [PATCH] Document `RUSTDOCFLAGS` --- src/doc/environment-variables.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/doc/environment-variables.md b/src/doc/environment-variables.md index 21274f9f3..6fe532d61 100644 --- a/src/doc/environment-variables.md +++ b/src/doc/environment-variables.md @@ -22,6 +22,9 @@ system: invocation, with the first argument being rustc. * `RUSTDOC` - Instead of running `rustdoc`, Cargo will execute this specified `rustdoc` instance instead. +* `RUSTDOCFLAGS` - A space-separated list of custom flags to pass to all `rustdoc` + invocations that Cargo performs. In contrast with `cargo rustdoc`, this is + useful for passing a flag to *all* `rustdoc` instances. * `RUSTFLAGS` - A space-separated list of custom flags to pass to all compiler invocations that Cargo performs. In contrast with `cargo rustc`, this is useful for passing a flag to *all* compiler instances. -- 2.30.2